package com.kevin.permission.util;

import com.google.common.base.Splitter;

import java.util.Collections;
import java.util.List;
import java.util.stream.Collector;
import java.util.stream.Collectors;

public class StringUtil {

    public static List<Integer> splitToListInt(String str){
        List<String> strList= Splitter.on(",").trimResults().omitEmptyStrings().splitToList(str);
        return strList.stream().map(strItem -> Integer.parseInt(strItem) ).collect(Collectors.toList());
    }
}
